
<li><a href="<?php echo base_url();?>" class="current"><span>Home</span></a></li>
<?php if(!empty($category)){
    foreach ($category as $category){
        echo '
        <li><a href="'.base_url().$category->alias.'.html"><span>'.$category->title.'</span></a></li>
        ';
    }
}?>
<li><a href="<?php echo base_url();?>offer/survey"><span>Offer & Survey</span></a></li>
<li><a href="<?php echo base_url();?>offer/wall"><span>Offer Wall</span></a></li>
<li><a href="<?php echo base_url();?>offer/content"><span>Content locker</span></a></li>


<li><a href="<?php echo base_url();?>user/account">Member</a>
    <ul>
    <?php 
    if($this->session->userdata('logedin')){
        echo '<li><a href="'.base_url().'user/account">Acount</a></li>';
        echo '<li><a href="'.base_url().'user/payout">Request Payout</a></li>';
        echo '<li><a href="'.base_url().'user/changepass">Change Password</a></li>';
        echo '<li><a href="'.base_url().'user/history">History</a></li>';
        echo '<li><a href="'.base_url().'user/logout">Logout</a></li>';
    }else{
        echo '<li><a href="'.base_url().'user/register">Register</a></li>';
        echo '<li><a href="'.base_url().'user/login">Login</a></li>';
    }    
    ?>  
    
    </ul>
</li>

<?php
if($this->session->userdata('g_logedin')){
        echo '<li><a href="'.base_url().'group">Group</a>
            <ul>
                <li><a href="'.base_url().'group/history">History</a></li>
                <li><a href="'.base_url().'group/logout">Logout</a></li>
            </ul> 
        </li>';
    }
?>

            